    function addsc() {
    const scname= document.getElementById("scname").value;
    const script= document.getElementById("script").value;
    const desc= document.getElementById("desc").value;
    const fom1 = new FormData();
    fom1.append('scname', scname);
    fom1.append('script', script);
    fom1.append('desc', desc);
    const addsc = new XMLHttpRequest();
    addsc.open('post', 'http://localhost:5000/script')
    addsc.send(fom1);
    addsc.onreadystatechange = function(){
        console.log(addsc.responseText);
        if (addsc.readyState == 4 && addsc.responseText == "1")
        {
            console.log("ok")
        } else {
            console.log("faile")
        }
    }
        }
     function selectsc() {
           const selsc = new XMLHttpRequest()
           const selgroup = document.getElementById("selectgroup").value;
           const sctemplatename = document.getElementById("sctemplatename").value;
           selsc.open('GET', 'http://127.0.0.1:5000/runscript?selgroup='+selgroup,);
           console.log(selgroup);
           selsc.send();
        }